#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <errno.h>

#include <string>
#include <sstream>


namespace SocketImp {

  int createServerSocket();
  int getNewConnection(int sockfd,
                       unsigned  int& clientPort,
                       std::string& ipAddr);

  int readData(int fd, std::stringstream& ss);

  int writeData(int fd, const std::string& ss);


}
